package com.leyou;

import com.leyou.gateway.config.FilterProperties;
import com.leyou.gateway.config.JwtProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author LT
 * @version 1.0.0
 * @ClassName LyGateway.java
 * @Description TODO 服务网关启动类
 * @createTime 2020年04月28日 11:57:00
 */
// @SpringBootApplication
// @EnableDiscoveryClient
// @EnableHystrix
@SpringCloudApplication  // 这个注解 =  @SpringBootApplication + @EnableDiscoveryClient + @EnableHystrix
@EnableConfigurationProperties({JwtProperties.class, FilterProperties.class})  //启用Jwt配置属性
@EnableScheduling     // 开启定时任务
@EnableFeignClients   // 启用伪装客户
public class LyGateway {

    public static void main(String[] args) {
        SpringApplication.run(LyGateway.class, args);
    }
}